package examination;

public class AuditBean {

    public static boolean audit(String examNo, boolean isPass, String refuse_reason)
    {
        String status;
        if (isPass) status = "待开始";
        else status = "审核不通过";

        String update = String.format("UPDATE exam SET exam_status = '%s', " +
                "refuse_reason = '%s' WHERE exam_id = '%s'", status, refuse_reason, examNo);
        DatabaseBean dbb = new DatabaseBean();
        return dbb.executeUpdate(update);
    }
}
